import request from '@/utils/request'

// //执行出库
export function executeAdjustOutBill(data) {
  return request({
    url: '/bill/modulationOutBill/execute',
    method: 'post',
	data
  })
}
export function selectModulationOutBillForPrint(query) {
  return request({
    url: '/bill/modulationOutBill/selectModulationOutBillForPrint',
    method: 'get',
    params: query
  })
}


// 查询调拨出库单列表
export function listModulationOutBill(query) {
  return request({
    url: '/bill/modulationOutBill/list',
    method: 'get',
    params: query
  })
}

// 查询调拨出库单详细
export function getModulationOutBill(id) {
  return request({
    url: '/bill/modulationOutBill/' + id,
    method: 'get'
  })
}

// 新增入库调整单
export function addModulationOutBill(data) {
  return request({
    url: '/bill/modulationOutBill',
    method: 'post',
    data: data
  })
}

// 修改入库调整单
export function updateModulationOutBill(data) {
  return request({
    url: '/bill/modulationOutBill',
    method: 'put',
    data: data
  })
}

// 删除入库调整单
export function delModulationOutBill(id) {
  return request({
    url: '/bill/modulationOutBill/' + id,
    method: 'delete'
  })
}

// 查询入库调整单明细列表
export function listModulationOutBillDetail(query) {
  return request({
    url: '/bill/modulationOutBillDetail/list',
    method: 'get',
    params: query
  })
}

// 查询入库调整单明细详细
export function getModulationOutBillDetail(id) {
  return request({
    url: '/bill/modulationOutBillDetail/' + id,
    method: 'get'
  })
}

// 新增入库调整单明细
export function addModulationOutBillDetail(data) {
  return request({
    url: '/bill/modulationOutBillDetail',
    method: 'post',
    data: data
  })
}

// 修改入库单调整明细
export function updateModulationOutBillDetail(data) {
  return request({
    url: '/bill/modulationOutBillDetail',
    method: 'put',
    data: data
  })
}

// 删除入库单调整明细
export function delModulationOutBillDetail(id) {
  return request({
    url: '/bill/modulationOutBillDetail/' + id,
    method: 'delete'
  })
}
